import axios from "axios"

export const getlogin = (e) => {
    return axios({
        method: 'POST',
        url: '/login',
        data: e
    })


}
//账号注册
export const getregister = (e) => {
    return axios({
        method: 'POST',
        url: '/register',
        data: e
    })
}
//获取用户信息
export const getuserinfo = () => {
    return axios({
        method: 'GET',
        url: '/getuserinfo',

    })
}
//发表评论
export const getcomment = (data) => {
    return axios({
        method: 'POST',
        url: '/sendcomment',
        data: data
    })
}
//获取评论信息
export const getcommentinfo = () => {
    return axios({
        method: 'GET',
        url: '/commentlists',

    })
}
export const getuser = () => {
    return axios({
        method: 'GET',
        url: '/user',

    })
}

export const getyao = () => {
    return axios({
        method: 'GET',
        url: '/title',

    })
}

export const gettui = () => {
    return axios({
        method: 'GET',
        url: '/recommend',

    })
}

//谁可以看
export const lookpeople = () => {
    return axios({
        method: 'GET',
        url: '/lookpeople',

    })
}
//发朋友圈
export const getfriendcircle = (data) => {
    return axios({
        method: 'POST',
        url: '/sendfriend',
        data: data
    })
}


//获取朋友圈信息
export const getfriendinfo = () => {
    return axios({
        method: 'GET',
        url: '/friendslist',

    })
}

export const yaodetails = () => {
    return axios({
        method: 'GET',
        url: '/yaodetails',

    })
}
//搜索功能
export const getsearchinfo = (data) => {
    return axios({
        method: 'POST',
        url: '/search',
        data: data
    })
}

export const getsearch = () => {
    return axios({
        method: 'GET',
        url: '/serach',

    })
}

export const getday = () => {
    return axios({
        method: 'GET',
        url: '/day',

    })
}

export const getfriend = () => {
    return axios({
        method: 'GET',
        url: '/friend',

    })
}


export const getuploadimg = (data) => {
    return axios({
        method: 'POST',
        url: '/uploadimg',
        data: data
    })
}


export const showfriend = () => {
    return axios({
        method: 'GET',
        url: '/showfriend',

    })
}


export const getfollow = () => {
    return axios({
        method: 'GET',
        url: '/follow',

    })
}



export const changel = (data) => {
    return axios({
        method: 'POST',
        url: '/changel',
        data: data

    })
}